// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import './assets/css/reset.css';
import './assets/css/common.css';
import 'element-ui/lib/theme-chalk/index.css';
import moment from 'moment'
import Http from '@/utils/ajax'
import { setItem, getItem } from "./tools/common";
import apiUrl from '@/utils/conf.js'
Vue.use(ElementUI);
Vue.prototype.$http = Http;
Vue.prototype.$moment = moment;
Vue.config.productionTip = false
Vue.filter('dateformat', function(dataStr, pattern = 'YYYY/MM/DD HH:mm:ss') {
    return moment(dataStr).format(pattern)
})
Vue.prototype.$myUrl = apiUrl;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
